<?php
// There are 3 VII (Very Important Icon) levels for turning icons off:
// If no VII is set 4 is assumed

// 1 - No Icons - These must be very very important icons as the user can't turn these off!
// 2 - Only Important - Function Icons e.g Add, Edit, Up, Down, Warning, Info
// 3 - Important and Pretty - Module icons in admin area and non-essential icons
// 4 - All Icons - Everything e.g Bullets, Arrows (A bit over the top but pretty)

// Example icon defintion:
// $icon['<name>'] = array('src' => '<item src>', alt => '<alt text>', title => '<title>', vii => 'TRUE');
function get_icons() {
	$siteconfig['vii_level'] = 2;

	$icon['author'] = array('src' => 'author.png', 'vii' => 3);
	$icon['comment'] = array('src' => 'comment.png', 'vii' => 3);
	$icon['profile'] = array('src' => 'profile.png', 'vii' => 3);
	$icon['report'] = array('src' => 'report.png', 'vii' => 3);

	$icon['poll_a'] = array('src' => 'poll_a.png', 'alt' => '[', 'vii' => 2);
	$icon['poll_b'] = array('src' => 'poll_b.png', 'alt' => '|||', 'vii' => 2);
	$icon['poll_c'] = array('src' => 'poll_c.png', 'alt'  => ']', 'vii' => 2);

	$icon['all'] = array('src' => ''); //empty
	$icon['anon'] = array('src' => ''); //empty
	$icon['banned'] = array('src' => ''); //empty
	$icon['bug'] = array('src' => 'bug.png'); //empty
	$icon['email'] = array('src' => 'email.png', 'alt' => '[Email]');
	$icon['goto'] = array('src' => ''); //empty
	$icon['name'] = array('src' => ''); //empty
	$icon['save'] = array('src' => 'save.png', 'alt' => '[Save]'); //empty
	$icon['telephone'] = array('src' => 'telephone.png', 'alt' => '[Telephone]');
	$icon['building'] = array('src' => 'building.png', 'alt' => '[Building]');
	$icon['signature'] = array('src' => 'signature.png', 'alt' => '[signature]');
	$icon['map'] = array('src' => 'map.png', 'alt' => '[Map]');

	$icon['read'] = array('src' => ''); //empty
	$icon['unread'] = array('src' => ''); //empty
	$icon['locked'] = array('src' => 'locked.png');
	$icon['unlocked'] = array('src' => 'unlocked.png');
	$icon['bookmarked'] = array('src' => 'bookmarked.png');
	$icon['sticky'] = array('src' => ''); //empty

	$icon['icq'] = array('src' => ''); //empty
	$icon['jabber'] = array('src' => ''); //empty
	$icon['msn'] = array('src' => ''); //empty
	$icon['pm'] = array('src' => ''); //empty
	$icon['yahoo'] = array('src' => ''); //empty

	$icon['about'] = array('src' => 'about.png', 'title' => 'About', 'vii' => 3);
	$icon['arrow'] = array('src' => 'arrow.png', 'title' => '[->]', 'vii' => 4);
	$icon['bb_arrow'] = array('src' => 'arrow.png', 'title' => '[->]', 'vii' => 2);
	$icon['bb_bullet'] = array('src' => 'bullet.png', 'title' => '*', 'vii' => 2);
	$icon['blank'] = array('src' => 'blank.png', 'title' => '*', 'vii' => 4);
	$icon['bullet'] = array('src' => 'bullet.png', 'title' => '*', 'vii' => 4);
	$icon['bullet_styled'] = array('src' => 'bullet_styled.png', 'title' => '*');
	$icon['date'] = array('src' => 'date.png', 'title' => 'Date', 'vii' => 3);
	$icon['error'] = array('src' => 'error.png', 'title' => 'Error', 'vii' => 2);
	$icon['failure'] = array('src' => 'disabled.png', 'vii' => 2);
	$icon['folder'] = array('src' => 'folder.png', 'title' => 'Folder', 'vii' => 3);
	$icon['folder_open'] = array('src' => 'folder_open.png', 'title' => 'Open Folder', 'vii' => 3);
	$icon['image'] = array('src' => 'image.png', 'title' => 'Image', 'vii' => 3);
	$icon['info'] = array('src' => 'info.png', 'title' => 'Info', 'vii' => 2);
	$icon['item'] = array('src' => 'item.png', 'title' => 'Item', 'vii' => 3);
	$icon['log'] = array('src' => 'log.png', 'title' => 'Log', 'vii' => 3);
	$icon['required'] = array('src' => 'pencil.png', 'alt' => '*', 'title' => 'Required', 'vii' => 3);
	$icon['report'] = array('src' => 'report.png', 'title' => 'Report', 'vii' => 2);
	$icon['separator'] = array('src' => 'separator.png', 'alt' => '-', 'vii' => 2);
	$icon['search'] = array('src' => 'search.png', 'title' => 'Search', 'vii' => 2);
	$icon['show_hide'] = array('src' => 'show_hide.png', 'alt' => '[Show/Hide]', 'title' => 'Show/Hide', 'vii' => 2);
	$icon['success'] = array('src' => 'enabled.png', 'vii' => 2);
	$icon['time'] = array('src' => 'time.png', 'title' => 'Time', 'vii' => 3);
	$icon['views'] = array('src' => 'views.png', 'title' => 'Views', 'vii' => 3);
	$icon['warning'] = array('src' => 'warning.png', 'title' => 'Warning', 'vii' => 3);

	$icon['activate'] = array('src' => 'enabled.png', 'alt' => '[Activate]', 'vii' => 2);
	$icon['add'] = array('src' => 'add.png', 'alt' => '[Add]', 'vii' => 2);
	$icon['delete'] = array('src' => 'delete.png', 'alt' => '[Delete]', 'vii' => 2);
	$icon['edit'] = array('src' => 'edit.png', 'alt' => '[Edit]', 'vii' => 2);
	$icon['enabled'] = array('src' => 'enabled.png', 'alt' => '[Enabled]', 'vii' => 2);
	$icon['disabled'] = array('src' => 'disabled.png', 'alt' => '[Disabled]', 'vii' => 2);
	$icon['hidden'] = array('src' => 'hidden.png', 'alt' => '[Hidden]', 'vii' => 2);
	$icon['shown'] = array('src' => 'shown.png', 'alt' => '[Shown]', 'vii' => 2);
	$icon['tag'] = array('src' => 'tag.png', 'alt' => '[Tag]', 'vii' => 2);
	$icon['tag_manage'] = array('src' => 'tag_manage.png', 'alt' => '[Edit Tags]', 'vii' => 2);
	$icon['tag_add'] = array('src' => 'tag_add.png', 'alt' => '[Add Tag]', 'vii' => 2);
	$icon['yes'] = array('src' => 'enabled.png', 'vii' => 2);
	$icon['no'] = array('src' => 'disabled.png', 'vii' => 2);

	$icon['position'] = array('src' => ''); //empty
	$icon['up'] = array('src' => 'up.png', 'alt' => '[Up]', 'vii' => 2);
	$icon['up_variation'] = array('src' => 'up_variation.png', 'alt' => '[Up]', 'vii' => 2);
	$icon['down'] = array('src' => 'down.png', 'alt' => '[Down]', 'vii' => 2);
	$icon['down_variation'] = array('src' => 'down_variation.png', 'alt' => '[Down]', 'vii' => 2);
	$icon['left'] = array('src' => 'left.png', 'alt' => '[Left]', 'vii' => 2);
	$icon['left_variation'] = array('src' => 'left_variation.png', 'alt' => '[Left]', 'vii' => 2);
	$icon['right'] = array('src' => 'right.png', 'alt' => '[Right]', 'vii' => 2);
	$icon['right_variation'] = array('src' => 'right_variation.png', 'alt' => '[Right]', 'vii' => 2);
	$icon['previous'] = array('src' => 'left.png', 'alt' => '[Previous]', 'vii' => 2);
	$icon['previous_variation'] = array('src' => 'left_variation.png', 'alt' => '[Previous]', 'vii' => 2);
	$icon['next'] = array('src' => 'right.png', 'alt' => '[Next]', 'vii' => 2);
	$icon['next_variation'] = array('src' => 'right_variation.png', 'alt' => '[Next]', 'vii' => 2);

	$icon['admin'] = array('src' => 'admin.png', 'vii' => 3);
	$icon['block'] = array('src' => 'block.png', 'vii' => 3);
	$icon['block_add'] = array('src' => 'block_add.png', 'title' => 'Add Block', 'vii' => 3);
	$icon['block_add_custom'] = array('src' => 'block_add_custom.png', 'title' => 'Add Custom Block', 'vii' => 3);
	$icon['block_manage'] = array('src' => 'block_manage.png', 'title' => 'Manage Blocks', 'vii' => 3);
	$icon['cache'] = array('src' => 'cache.png', 'vii' => 3);
	$icon['category'] = array('src' => 'category.png', 'vii' => 3);
	$icon['category_add'] = array('src' => 'category_add.png', 'title' => 'Add Category', 'vii' => 3);
	$icon['category_manage'] = array('src' => 'category_manage.png', 'title' => 'Manage Categories', 'vii' => 3);
	$icon['config'] = array('src' => 'config.png', 'vii' => 3);
	$icon['downloads'] = array('src' => 'downloads.png', 'vii' => 3);
	$icon['downloads_add'] = array('src' => 'downloads_add.png', 'title' => 'Add Download', 'vii' => 3);
	$icon['downloads_manage'] = array('src' => 'downloads_manage.png', 'title' => 'Manage Downloads', 'vii' => 3);
	$icon['form'] = array('src' => 'form.png', 'vii' => 3);
	$icon['form_add'] = array('src' => 'form_add.png', 'title' => 'Add Form', 'vii' => 3);
	$icon['form_manage'] = array('src' => 'form_manage.png', 'title' => 'Manage Forms', 'vii' => 3);
	$icon['forum'] = array('src' => 'forum.png', 'vii' => 3);
	$icon['forum_add'] = array('src' => 'forum_add.png', 'title' => 'Add Forum', 'vii' => 3);
	$icon['forum_manage'] = array('src' => 'forum_manage.png', 'title' => 'Manage Forums', 'vii' => 3);
	$icon['gallery'] = array('src' => 'gallery.png', 'vii' => 3);
	$icon['gallery_album_add'] = array('src' => 'gallery_album_add.png', 'title' => 'Add Album', 'vii' => 3);
	$icon['gallery_image_add'] = array('src' => 'gallery_image_add.png', 'title' => 'Add Image', 'vii' => 3);
	$icon['gallery_manage'] = array('src' => 'gallery_manage.png', 'title' => 'Manage Albums', 'vii' => 3);
	$icon['group'] = array('src' => 'group.png', 'vii' => 3);
	$icon['group_add'] = array('src' => 'group_add.png', 'title' => 'Add Group', 'vii' => 3);
	$icon['group_manage'] = array('src' => 'group_manage.png', 'title' => 'Manage Groups', 'vii' => 3);
	$icon['home'] = array('src' => 'home.png', 'vii' => 3);
	$icon['link'] = array('src' => 'link.png', 'vii' => 3);
	$icon['link_add'] = array('src' => 'link_add.png', 'title' => 'Add Link', 'vii' => 3);
	$icon['link_manage'] = array('src' => 'link_manage.png', 'title' => 'Manage Links', 'vii' => 3);
	$icon['message'] = array('src' => 'message.png', 'vii' => 3);
	$icon['message_add'] = array('src' => 'message_add.png', 'title' => 'Add Message', 'vii' => 3);
	$icon['message_manage'] = array('src' => 'message_manage.png', 'title' => 'Manage Messages', 'vii' => 3);
	$icon['module'] = array('src' => 'module.png', 'vii' => 3);
	$icon['module_manage'] = array('src' => 'module_manage.png', 'title' => 'Manage Modules', 'vii' => 3);
	$icon['navigation'] = array('src' => 'navigation.png', 'vii' => 3);
	$icon['navigation_add'] = array('src' => 'navigation_add.png', 'title' => 'Add Navigation', 'vii' => 3);
	$icon['navigation_manage'] = array('src' => 'navigation_manage.png', 'title' => 'Manage Navigation', 'vii' => 3);
	$icon['news'] = array('src' => 'news.png', 'vii' => 3);
	$icon['news_add'] = array('src' => 'news_add.png', 'title' => 'Add News', 'vii' => 3);
	$icon['news_manage'] = array('src' => 'news_manage.png', 'title' => 'Manage News', 'vii' => 3);
	$icon['pages'] = array('src' => 'pages.png', 'vii' => 3);
	$icon['pages_add'] = array('src' => 'pages_add.png', 'title' => 'Add Page', 'vii' => 3);
	$icon['pages_manage'] = array('src' => 'pages_manage.png', 'title' => 'Manage Pages', 'vii' => 3);
	$icon['pages_items_edit'] = array('src' => 'pages_items_edit.png', 'title' => 'Edit Page Items', 'vii' => 2);
	$icon['poll'] = array('src' => 'poll.png', 'vii' => 3);
	$icon['poll_add'] = array('src' => 'poll_add.png', 'title' => 'Add Poll', 'vii' => 3);
	$icon['poll_manage'] = array('src' => 'poll_manage.png', 'title' => 'Manage Polls', 'vii' => 3);
	$icon['permission'] = array('src' => 'permission.png', 'vii' => 3);
	$icon['permission_add'] = array('src' => 'permission_add.png', 'title' => 'Add Permission', 'vii' => 3);
	$icon['permission_manage'] = array('src' => 'permission_manage.png', 'title' => 'Manage Permissions', 'vii' => 3);
	$icon['role'] = array('src' => 'role.png', 'vii' => 3);
	$icon['role_add'] = array('src' => 'role_add.png', 'title' => 'Add Role', 'vii' => 3);
	$icon['role_manage'] = array('src' => 'role_manage.png', 'title' => 'Manage Role', 'vii' => 3);
	$icon['report'] = array('src' => 'report.png', 'vii' => 3);
	$icon['report_add'] = array('src' => 'report_add.png', 'title' => 'Add', 'vii' => 3);
	$icon['report_manage'] = array('src' => 'report_manage.png', 'title' => 'Manage', 'vii' => 3);
	$icon['shout_block'] = array('src' => 'shout_block.png', 'vii' => 3);
	$icon['shout_block_manage'] = array('src' => 'shout_block_manage.png', 'title' => 'Manage Shout Block', 'vii' => 3);
	$icon['user'] = array('src' => 'user.png', 'vii' => 3);
	$icon['user_add'] = array('src' => 'user_add.png', 'title' => 'Add User', 'vii' => 3);
	$icon['user_manage'] = array('src' => 'user_manage.png', 'title' => 'Manage Users', 'vii' => 3);
	$icon['logout'] = array('src' => 'logout.png', 'vii' => 3);

	foreach ($icon as $name => $temp_icon) {
		if (isset($temp_icon['title']) && $temp_icon['title'] != NULL) $title = 'title="'.$temp_icon['title'].'" '; else $title = NULL;
		if (isset($temp_icon['alt']) && $temp_icon['alt'] != NULL) $alt = 'alt="'.$temp_icon['alt'].'" '; else $alt = 'alt="'.$temp_icon['src'].'" ';
		if (isset($temp_icon['vii']) && $temp_icon['vii'] == NULL) $temp_icon['vii'] = 4; else $temp_icon['vii'] = NULL;

		if ($temp_icon['vii'] <= $siteconfig['vii_level']) $icon[$name] = '<img class="icon" src="media/icons/'.$temp_icon['src'].'" '.$title.$alt.'/>';
		else $icon[$name] = $temp_icon['alt'];
	}

	return $icon;
}

?>
